package com.cloud.mkz.core.common.exception;

import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@NoArgsConstructor
public class SsoException extends RuntimeException {
	private static final long serialVersionUID = 1L;
	private String type;
	private String url;

	public SsoException(String url, String type, String message) {
		super(message);
		this.url = url;
		this.type = type;
		log.warn("<"+type+">调用方法： "+url);
	}

	public SsoException(String message) {
		super(message);
	}

	public SsoException(Throwable cause) {
		super(cause);
	}

	public SsoException(String message, Throwable cause) {
		super(message, cause);
	}

	public SsoException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
		super(message, cause, enableSuppression, writableStackTrace);
	}

	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
}